package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select * from tb_member where name = #{username} and password = #{password}")
    User get(String username,String password);//查出来用user接住，如果账密有一个不匹配就会返回null

}
